/**
 * Copyright (c) 2020 Coder League
 * All rights reserved.
 *
 * File：SystemConfig.java
 * History:
 *         2020年12月17日: Initially created, Chrise.
 */
package club.coderleague.cfss.domain.beans;

import java.io.Serializable;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 系统配置。
 * @author Chrise
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class SystemConfig implements Serializable {
	private static final long serialVersionUID = -7532244191577892670L;
	
	/**
	 * 缓存键。
	 */
	public static final String CACHE_KEY = "systemconfig_cache";
	
	private Integer vercodetimeout;
	private String wxappid;
	private String wxappkey;
	private String wxvertoken;
	private String wxwelcome;
	private String ayappid;
	private String ayappkey;
	private String aysign;
	
	/**
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		return EqualsBuilder.reflectionEquals(this, obj);
	}
	
	/**
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.DEFAULT_STYLE);
	}
}
